/* eslint-disable @typescript-eslint/no-unused-vars */
<template>
  <div>
    <a-spin :spinning="spinning" tip="正在加载...">
      <div class="header">
        <div class="headertabs">
          <!-- <a class="header-tilte header-active">AI专题研判台</a>
          <a class="header-tilte" @click="handleTo">AI研判</a> -->
          {{ time }}
          {{ getWeekDate() }}
        </div>
        <div>
          <div class="tags tagtime">
            <a
              href="javascript:void(0)"
              @click="handleTime(index)"
              v-for="(item, index) in seasonData"
              :key="index"
              :class="index == seasonActive ? 'tagsactive' : ''"
            >
              {{ item }}
            </a>
          </div>
          <!-- <div>
          <a-radio-group
            class="tags buttonradio"
            v-model:value="value"
            button-style="solid"
            size="small"
          >
            <a-radio-button value="a">接警</a-radio-button>
            <a-radio-button value="b">反馈</a-radio-button>
          </a-radio-group>
        </div> -->
        </div>
      </div>
      <div class="content">
        <a-row :span="24" gutter="20" style="margin-top: 25px">
          <a-col :span="5" class="contentleft">
            <div class="backheader">
              <div class="xqpm">辖区排名</div>
              <div class="tags">
                <a
                  href="javascript:void(0)"
                  v-for="(item, index) in xqData"
                  :key="index"
                  @click="handlepm(index)"
                  :class="tagsactives == index ? 'tagsactive' : ''"
                >
                  {{ item }}
                </a>
              </div>
            </div>
            <div class="overheight" v-if="pmData && pmData.length" ref="overHeight">
              <a
                href="javascript:void(0)"
                class="mingc"
                v-for="(item, index) in pmData"
                :class="paimactive == item.code ? 'mingcactive' : ''"
                @click="handleepmsx(item)"
              >
                <a-row :span="24" gutter="10" style="display: flex; align-items: center">
                  <a-col class="mingctitle" :span="8">
                    <span class="fontnumber">{{ index + 1 }}</span>
                    <span style="padding-bottom: 12px">{{ item.name }}</span>
                  </a-col>
                  <a-col :span="14" style="margin-top: 12px">
                    <div>
                      <span class="caseNumlength">
                        <a-tooltip>
                          <template #title>{{ item.caseNum }}起</template>
                          {{ item.caseNum }}
                        </a-tooltip>
                      </span>
                      <span style="position: absolute; top: -12px; left: 54px; color: #ffffff">
                        起
                      </span>
                    </div>
                    <div class="mingctop">
                      <span v-if="item.yoyRatio">
                        <img
                          src="@/assets/image/statistics/tb.svg"
                          style="width: 13px; height: 13px; margin-bottom: 10px"
                          alt=""
                        />
                        <!-- {{ item.yoyRatio }}% -->
                        <span class="percentage">
                          <a-tooltip>
                            <template #title>{{ item.yoyRatio }}%</template>
                            {{ item.yoyRatio }}%
                          </a-tooltip>
                        </span>
                      </span>
                      <span
                        v-if="item.yoyRatio && item.yoyRatio > 0"
                        style="position: absolute; color: #ec4025"
                      >
                        ↑
                      </span>
                      <span
                        style="color: #66ff00; position: absolute"
                        v-if="item.yoyRatio && item.yoyRatio < 0"
                      >
                        ↓
                      </span>
                    </div>
                    <div class="mingcbottom">
                      <span v-if="item.chainRatio">
                        <img
                          src="@/assets/image/statistics/hb.svg"
                          style="width: 13px; height: 10px; margin-bottom: 13px"
                          alt=""
                        />
                        <!-- {{ item.chainRatio }}% -->
                        <span class="percentage">
                          <a-tooltip>
                            <template #title>{{ item.chainRatio }}%</template>
                            {{ item.chainRatio }}%
                          </a-tooltip>
                        </span>
                      </span>
                      <span
                        style="position: absolute; color: #ec4025"
                        v-if="item.chainRatio && item.chainRatio > 0"
                      >
                        ↑
                      </span>
                      <span
                        style="color: #66ff00; position: absolute"
                        v-if="item.chainRatio && item.chainRatio < 0"
                      >
                        ↓
                      </span>
                    </div>
                    <a-progress
                      :percent="item.percent * 100"
                      :show-info="false"
                      strokeLinecap="square"
                      style="margin-top: 3px"
                    />
                  </a-col>
                  <div></div>
                </a-row>
              </a>
            </div>
            <a-empty v-else style="margin-top: 90%" />
          </a-col>

          <a-col :span="14" class="middle">
            <a-card :bordered="false">
              <a-row class="cardContent" :span="24" gutter="50">
                <a-col :span="12" class="cardtitle">
                  汇聚数据
                  <div class="bg">
                    <div class="fontnumber">
                      <div class="fontborder" v-for="item in jhData.caseNum">{{ item }}</div>
                    </div>
                  </div>
                  <a-row class="carddata" :span="24">
                    <a-col class="number" :span="8">
                      <div class="cardtitle">专题数量</div>
                      <div class="cardtnumber">
                        <div>{{ jhData.specialCount }}</div>
                        <div>个</div>
                      </div>
                    </a-col>
                    <a-col class="number" :span="8">
                      <div class="cardtitle">分类数量</div>
                      <div class="cardtnumber">
                        <div>{{ jhData.classifyCount }}</div>
                        <div>个</div>
                      </div>
                    </a-col>
                    <a-col class="number" :span="8">
                      <div class="cardtitle">AI标签</div>
                      <div class="cardtnumber">
                        <div>{{ jhData.lableCount }}</div>
                        <div>个</div>
                      </div>
                    </a-col>
                  </a-row>
                </a-col>
                <a-col :span="12" class="cardtitle">
                  高发分类
                  <div class="bg fontnumber">
                    <div class="fontborder" v-for="(item, index) in jhData.count" :key="index">
                      {{ item }}
                    </div>
                  </div>
                  <a-row
                    :span="24"
                    style="height: 100%"
                    v-if="jhData.classifyList && jhData.classifyList.length"
                  >
                    <a-col
                      class="numbertwo"
                      :span="8"
                      v-for="(item, index) in jhData.classifyList"
                      :key="index"
                    >
                      <img src="@/assets/image/statistics/xingz.png" alt="" />
                      <div class="numbertwotitle">
                        <div>
                          {{ item.caseNum }}
                          <div class="cardname" :title="item.classifyName">
                            {{ item.classifyName }}
                          </div>
                        </div>
                      </div>
                    </a-col>
                  </a-row>
                  <a-row :span="24" style="padding-top: 21px" v-else>
                    <a-empty style="margin: 0 auto" />
                  </a-row>
                </a-col>
              </a-row>
            </a-card>
            <div class="ztDetail">
              <div class="xqpm">专题详情</div>
              <swiper
                :swiperData="TopicStat"
                @handlejux="handlejux"
                :juxactive="juxactive"
                ref="refSwiper"
                v-if="TopicStat.length"
              />
              <div
                v-else
                style="display: flex; justify-content: center; align-items: center; height: 470px"
              >
                <div>
                  <a-empty />
                </div>
              </div>
            </div>
          </a-col>

          <a-col :span="5" class="borderheader">
            <div class="backheader" style="padding-top: 5px; height: 45vh">
              <div class="xqpm">警情趋势</div>
              <div v-if="chartData && chartData.length" style="height: 40vh">
                <timeline-chart
                  :data="chartData"
                  :height="40"
                  type="智能"
                  heightType="vh"
                  :legend="['当前警情', '去年同期']"
                  :fieldNames="{ name: 'dataDate', values: ['caseNum', 'yoyCaseNum'] }"
                  @zrender:click="chartClickLine"
                />
              </div>
              <a-empty v-else style="margin-top: 160px" />
            </div>
            <div class="backheader" style="padding-top: 5px; height: 350px">
              <div class="xqpm">动态关注</div>
              <div>
                <pie
                  :data="chartArr"
                  :height="25"
                  heightType="vh"
                  :fieldNames="{
                    name: 'classifyName',
                    value: 'caseNum',
                  }"
                  @zrender:click="pieRenderClickHandle"
                  v-if="chartArr.length"
                  style="margin-top: 60px"
                />
                <a-empty v-else style="margin-top: 100px" />
              </div>
            </div>
          </a-col>
        </a-row>
      </div>
    </a-spin>
    <police-list-drawer
      v-model:visible="tabVisible"
      :title="titleData"
      :tabs="policeTabs"
    ></police-list-drawer>
  </div>
</template>

<script lang="ts">
import { defineComponent, ref, onMounted, reactive } from 'vue';
import TimelineChart from '@/components/charts/line/index.vue';
import Pie from '@/components/charts/borderPie/index.vue';
import {
  querySpecialTopicStat,
  queryClassifyList,
  queryCaseTrend,
  queryXqdwTopChart,
  querySummaryStat,
} from '@/api/intelligentanalysis/statisticsanalysis';
import moment from 'moment';
import { chunk, isNil } from 'lodash-es';
import { useRouter } from 'vue-router';
import PoliceListDrawer from '@/components/police-list-drawer/index.vue';
import swiper from '@/components/my-swiper/index.vue';
export default defineComponent({
  components: {
    TimelineChart,
    Pie,
    swiper,
    PoliceListDrawer,
  },
  setup() {
    const time = ref<string>(moment().format('YYYY-MM-DD'));
    const getWeekDate = () => {
      let now = new Date();
      let day = now.getDay();
      let weeks = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
      let week = weeks[day];
      return week;
    };
    const tabVisible = ref<boolean>(false);
    const titleData = ref<string>('');
    const spinning = ref<boolean>(true);
    const policeTabs = ref<Array<any>>([]);
    const TopicStat = ref<any>([]);

    //   查询条件
    const queryFrom = reactive({
      otherFlag: 'N',
      trafficFlag: 'N',
      TimeRange: '3',
      classifyCodes: '', //专题详情
      xqdwCodes: '', //辖区排名
      callTimeEnd: moment().format('YYYY-MM-DD HH:mm:ss'),
      sortType: '0',
    });
    const chartData = ref<Array<any>>([]);
    const chartArr = ref<Array<any>>([]);
    const jhData = ref<any>({});
    //辖区排名枚举
    const xqData = ['全量', '同比', '环比'];
    //时间
    const seasonData = reactive(['周', '月', '季', '年']);
    //排名active
    const tagsactives = ref<any>('0');
    //点击周月年筛选
    const handleTime = value => {
      //辖区排名清空
      queryFrom.xqdwCodes = '';
      paimactive.value = '';
      //专题详情清空
      queryFrom.classifyCodes = '';
      juxactive.value = '';
      queryFrom.TimeRange = value;
      seasonActive.value = value;
      handlequerySpecialTopicStat();
      handlequeryClassifyList();
      handlequeryCaseTrend();
      handlequeryXqdwTopChart();
      handlequerySummaryStat();
      handleoverHeight();
    };
    //排名筛选条件点击事件
    const handlepm = value => {
      queryFrom.sortType = value;
      queryFrom.xqdwCodes = '';
      paimactive.value = '';
      tagsactives.value = value;
      handlequeryXqdwTopChart();
      handleoverHeight();
    };
    const size = ref<string>('yp');
    //排名active
    const paimactive = ref<any>();
    const juxactive = ref<any>();
    //排名事件
    const handleepmsx = value => {
      if (value.code == queryFrom.xqdwCodes) {
        queryFrom.xqdwCodes = '';
        paimactive.value = '';
      } else {
        queryFrom.classifyCodes = '';
        juxactive.value = '';
        queryFrom.xqdwCodes = value.code;
        paimactive.value = value.code;
      }
      handlequerySpecialTopicStat();
      handlequeryCaseTrend();
      handlequeryClassifyList();
    };
    const handleSizeChange = e => {
      size.value = e.target.value;
    };
    //专题详情
    const handlequerySpecialTopicStat = () => {
      querySpecialTopicStat(queryFrom)
        .then(res => {
          res.data.list.forEach(item => {
            if (item.caseNum) {
              item.caseNum = item.caseNum.toString().split('');
            }
          });
          TopicStat.value = chunk(res.data.list, 6);
        })
        .catch(err => {
          console.log('专题详情', err);
        });
    };
    //动态关注
    const handlequeryClassifyList = () => {
      queryClassifyList(queryFrom)
        .then(res => {
          chartArr.value = res.data;
        })
        .catch(err => {
          console.log('动态关注', err);
        });
    };
    //动态关注弹框
    const lineParamszn = [
      {
        url: '/aitype/caseInfo/queryCaseInfo',
        params: reactive({
          callTimeStart: queryFrom.callTimeEnd,
          callTimeEnd: queryFrom.callTimeEnd,
          classifyCodes: '',
          otherFlag: 'N',
          trafficFlag: 'N',
          xqdwCodes: queryFrom.xqdwCodes,
          page: 1,
          size: 50,
        }),
      },
    ];
    const pieRenderClickHandle = e => {
      //根据选择日期计算开始时间
      const date = ref<any>();
      if (queryFrom.TimeRange == '0') {
        date.value = moment(queryFrom.callTimeEnd)
          .subtract(7, 'days')
          .format('YYYY-MM-DD HH:mm:ss');
      } else if (queryFrom.TimeRange == '1') {
        date.value = moment(queryFrom.callTimeEnd)
          .subtract(30, 'days')
          .format('YYYY-MM-DD HH:mm:ss');
      } else if (queryFrom.TimeRange == '2') {
        date.value = moment(queryFrom.callTimeEnd)
          .subtract(90, 'days')
          .format('YYYY-MM-DD HH:mm:ss');
      } else {
        date.value = moment(queryFrom.callTimeEnd)
          .subtract(1, 'year')
          .format('YYYY-MM-DD HH:mm:ss');
      }
      const dataIndex = e?.target?.dataIndex;
      if (!isNil(dataIndex)) {
        titleData.value = chartArr.value[dataIndex].classifyName;
        lineParamszn[0].params.callTimeStart = date.value;
        lineParamszn[0].params.callTimeEnd = queryFrom.callTimeEnd;
        lineParamszn[0].params.xqdwCodes = queryFrom.xqdwCodes;
        lineParamszn[0].params.classifyCodes = chartArr.value[dataIndex].classifyCode;
        policeTabs.value = lineParamszn;
        tabVisible.value = true;
      }
    };
    //趋势图点击
    const lineParams = [
      {
        name: '当期警情',
        url: '/aitype/caseInfo/queryCaseInfo',
        params: reactive({
          callTimeStart: queryFrom.callTimeEnd,
          callTimeEnd: queryFrom.callTimeEnd,
          classifyCodes: '',
          page: 1,
          size: 50,
          xqdwCodes: '',
        }),
      },
      {
        name: '去年同期',
        url: '/aitype/caseInfo/queryCaseInfo',
        params: reactive({
          callTimeStart: queryFrom.callTimeEnd,
          callTimeEnd: queryFrom.callTimeEnd,
          classifyCodes: '',
          page: 1,
          size: 50,
          xqdwCodes: '',
        }),
      },
    ];
    const chartClickLine = (index, item) => {
      tabVisible.value = true;
      titleData.value = '警情趋势预警';
      lineParams[0].params.callTimeStart = `${item.dataDate} 00:00:00`;
      lineParams[0].params.callTimeEnd = `${item.dataDate} 23:59:59`;
      lineParams[0].params.xqdwCodes = queryFrom.xqdwCodes;
      lineParams[0].params.classifyCodes = queryFrom.classifyCodes;

      lineParams[1].params.callTimeStart = `${moment(item.dataDate)
        .subtract(1, 'years')
        .format('YYYY-MM-DD')} 00:00:00`;
      lineParams[1].params.callTimeEnd = `${moment(item.dataDate)
        .subtract(1, 'years')
        .format('YYYY-MM-DD')} 23:59:59`;
      lineParams[1].params.xqdwCodes = queryFrom.xqdwCodes;
      lineParams[1].params.classifyCodes = queryFrom.classifyCodes;
      policeTabs.value = lineParams;
    };
    //警情趋势
    const handlequeryCaseTrend = () => {
      spinning.value = true;
      queryCaseTrend(queryFrom)
        .then(res => {
          chartData.value = res.data.dataList;
        })
        .catch(err => {
          console.log('警情趋势', err);
        })
        .finally(() => {
          spinning.value = false;
        });
    };
    //辖区排名
    const handlequeryXqdwTopChart = () => {
      queryXqdwTopChart(queryFrom)
        .then(res => {
          pmData.value = res.data;
        })
        .catch(err => {
          console.log('辖区排名', err);
        });
    };
    const pmData = ref<any>([]);
    //汇聚 分类
    const handlequerySummaryStat = () => {
      querySummaryStat(queryFrom)
        .then(res => {
          res.data.count = 0;
          res.data.classifyList.forEach(item => {
            res.data.count += item.caseNum;
          });
          res.data.count = res.data.count.toString().split('');
          res.data.caseNum = res.data.caseNum.toString().split('');
          jhData.value = res.data;
        })
        .catch(err => {
          console.log('汇聚 分类', err);
        });
    };
    const seasonActive = ref<number>(3);
    const router = useRouter();
    const handleTo = () => {
      router.push({
        path: '/ai-judgment',
      });
    };
    //点击专题详情
    const handlejux = value => {
      if (queryFrom.classifyCodes == value.vcode) {
        queryFrom.classifyCodes = '';
        juxactive.value = '';
      } else {
        queryFrom.classifyCodes = value.vcode;
        juxactive.value = value.vcode;
      }
      queryFrom.xqdwCodes = '';
      paimactive.value = '';
      handlequeryXqdwTopChart();
      handlequeryCaseTrend();
      handlequeryClassifyList();
      handleoverHeight();
    };
    //回到顶部
    const overHeight = ref<any | HTMLInputElement>(null);
    const handleoverHeight = () => {
      if (overHeight.value.scrollTop != 0) {
        overHeight.value.scrollTop = 0;
      }
    };

    onMounted(() => {
      handlequerySpecialTopicStat();
      handlequeryClassifyList();
      handlequeryCaseTrend();
      handlequeryXqdwTopChart();
      handlequerySummaryStat();
    });
    return {
      getWeekDate,
      overHeight,
      size,
      lineParamszn,
      handleTo,
      seasonActive,
      handleTime,
      TopicStat,
      handleSizeChange,
      chartData,
      chartArr,
      paimactive,
      handleepmsx,
      xqData,
      handlepm,
      tagsactives,
      handlequerySpecialTopicStat,
      handlejux,
      juxactive,
      handlequeryClassifyList,
      handlequeryCaseTrend,
      handlequeryXqdwTopChart,
      pmData,
      handlequerySummaryStat,
      jhData,
      seasonData,
      spinning,
      pieRenderClickHandle,
      policeTabs,
      titleData,
      tabVisible,
      chartClickLine,
      time,
    };
  },
});
</script>

<style lang="less" scoped>
// @import '@/assets/font/font.css';
.header {
  display: flex;
  justify-content: center;
  height: 40px;
  background: linear-gradient(
    -90deg,
    rgba(31, 115, 241, 0),
    rgba(87, 97, 123, 0.3),
    rgba(31, 115, 241, 0)
  );
  border-radius: 1px;
  .headertabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 300px;
    height: 40px;
    color: #b9c4dd;
    font-weight: bold;
    font-size: 24px;
    font-family: Source Han Sans CN;
  }
  .header-tilte {
    height: 40px;
    color: #b9c4dd;
    font-family: Source Han Sans CN;
    line-height: 40px;
  }
  .header-active {
    border-bottom: 2px solid #1dd6e3;
  }
}
.contentleft {
  position: relative;
  height: 79vh;
  border: 1px solid;
  border-image: linear-gradient(0deg, #57617b 0%, rgba(43, 45, 51, 0) 100%);
  border-image: -webkit-linear-gradient(#202126, #57617b) 40 30;
  border-image: -moz-linear-gradient(#202126, #57617b) 40 30;
  border-image: linear-gradient(#202126, #57617b) 30 30;
  .overheight {
    height: 73vh;
    overflow: auto;
    overflow-x: hidden;
    .caseNumlength {
      position: absolute;
      top: -12px;
      display: inline-block;
      flex: 1;
      width: 48px;
      min-width: 0;
      overflow: hidden;
      color: #35e3f0;
      font-weight: 400;
      font-weight: normal;
      font-style: italic;
      white-space: nowrap;
      text-align: right;
      text-overflow: ellipsis;
    }
  }
  .backheader {
    height: 4vh;
    background-image: url(~@/assets/image/statistics/b1.png);
    background-repeat: no-repeat;
    background-size: 100% 86%;
    .xqpm {
      position: absolute;
      top: -10px;
      left: 18px;
      color: #ffffff;
      font-weight: bold;
      font-size: 16px;
      font-family: Source Han Sans CN;
    }
  }
  .mingcactive {
    background-image: url(~@/assets/image/statistics/paimactive.png) !important;
  }
  .mingc {
    display: block;
    width: 100%;
    height: 85px;
    background-image: url(~@/assets/image/statistics/paim.png);
    background-repeat: no-repeat;
    background-size: 100% 80px;
    pointer-events: none;
    .mingctitle {
      display: flex;
      align-items: center;
      margin-top: 19px;
      margin-left: 12px;
      text-align: center;
    }
    .mingctitle span:nth-child(1) {
      color: #afdcff;
      font-weight: bold;
      font-size: 20px;
      font-family: Agency FB;
    }
    .mingctitle span:nth-child(2) {
      margin-left: 10px;
      color: #ffffff;
      font-size: 15px;
      font-family: Microsoft YaHei;
    }
    :deep(.ant-progress-inner) {
      border-radius: 0 !important;
      transform: skewX(-145deg);
    }
    :deep(.ant-progress-bg) {
      background: linear-gradient(92deg, #3380c1 0%, #24b5c8 100%);
      border-radius: 0 !important;
      transform: skewX(-166deg);
      //   opacity: 0.2;
    }
    .mingctop {
      position: absolute;
      top: -12px;
      right: 10px;
      color: #ffffff;
      font-style: italic;
    }
    .percentage {
      display: inline-block;
      flex: 1;
      width: 64px;
      min-width: 0;
      overflow: hidden;
      font-weight: normal;
      white-space: nowrap;
      text-align: center;
      text-overflow: ellipsis;
    }
    .mingcbottom {
      position: absolute;
      top: 20px;
      right: 10px;
      color: #ffffff;
      font-style: italic;
    }
  }
}
.cardContent {
  display: flex;
  height: 28vh;
  .cardtitle {
    color: #ffffff;
    font-weight: bold;
    font-size: 20px;
    font-family: Source Han Sans CN;
    text-align: center;
    .bg {
      margin-top: 15px;
      background-image: url(~@/assets/image/statistics/bg.png);
      background-repeat: no-repeat;
      background-size: 100% 100%;
    }
    .carddata {
      display: flex;
      height: 60%;
      margin-top: 3vh;
      .number {
        height: 100%;
        background-image: url(~@/assets/image/statistics/shuliang.png);
        background-repeat: no-repeat;
        background-size: 100% 100%;
      }
      .cardtitle {
        margin-top: -20px;
        margin-left: 12px;
        color: #ffffff;
        font-size: 20px;
        font-family: Source Han Sans CN;
        text-align: center;
      }
      .cardtnumber {
        margin-top: 9vh;
        margin-left: 14px;
        color: #ffffff;
        font-size: 22px;
        font-family: Roboto;
      }
    }
    .numbertwo {
      width: 120%;
      height: 100%;
      background-image: url(~@/assets/image/statistics/bgtwo.png);
      background-repeat: no-repeat;
      background-position: 50% -10px;
      background-size: 160% 90%;
    }
    .numbertwo img {
      position: relative;
      top: 5vh;
    }
    .numbertwo .numbertwotitle {
      margin-top: 12vh;
    }
    .cardname {
      overflow: hidden;
      color: #b9c4dd;
      font-size: 18px;
      font-family: Source Han Sans CN;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
  }
}
.middle {
  height: 79vh;
  border: 1px solid;
  border-image: linear-gradient(0deg, #57617b 0%, rgba(43, 45, 51, 0) 100%);
  border-image: -webkit-linear-gradient(#202126, #57617b) 40 30;
  border-image: -moz-linear-gradient(#202126, #57617b) 40 30;
  border-image: linear-gradient(#202126, #57617b) 30 30;
}
.ztDetail {
  margin-top: 1vh;
  padding: 0 10px;
  background-image: url(~@/assets/image/statistics/b2.png);
  background-repeat: no-repeat;
  background-size: 100%;
  .xqpm {
    position: relative;
    // top: -10px;
    height: 3vh;
    margin-left: 28px;
    color: #ffffff;
    font-weight: bold;
    font-size: 16px;
    font-family: Source Han Sans CN;
  }
  .swiper {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    // justify-content: space-between;
    width: 100%;
    height: 49.3vh;
    margin-top: 20px;
    overflow: auto;
    .jux {
      position: relative;
      width: 32%;
      height: 210px;
      margin-top: 20px;
      margin-left: 10px;
      background-image: url(~@/assets/image/statistics/jux.png);
      background-repeat: no-repeat;
      background-size: 100% 100%;
      cursor: pointer;
    }
    .juxactive {
      background-image: url(~@/assets/image/statistics/juxactive.png) !important;
      background-size: 100% 100%;
    }
    .ai {
      position: absolute;
      top: -1px;
      left: 0;
      width: 30px;
      height: 30px;
      background-image: url(~@/assets/image/statistics/ai.svg);
      background-repeat: no-repeat;
      background-size: 100%;
    }
    .swipertitle {
      color: #ffffff;
      font-weight: 400;
      font-size: 20px;
      font-family: Source Han Sans CN;
    }
    .jq {
      margin: 5px 0;
      color: #b9c4dd;
      font-weight: 400;
      font-size: 13px;
      font-family: Microsoft YaHei;
    }
    .swiperinfo {
      display: flex;
      margin-top: 15px;
      .number {
        height: 25px;
        margin-bottom: 13px;
        color: #ffffff;
        font-weight: 400;
        font-size: 26px;

        text-align: center;
      }
      .infoborder {
        border-right: 1px solid #3c4454;
      }
      .infoname {
        color: #b9c4dd;
        font-weight: 400;
        font-size: 12px;
        text-align: center;
      }
      .contrast {
        width: 30px;
      }
    }
    .swiperinfo > .infoborder:nth-child(1) {
      width: 20%;
      text-align: left;
      .number {
        text-align: left;
      }
      .infoname {
        text-align: left;
      }
    }
    .swiperinfo > .infoborder {
      width: 33%;
    }
    .proportion {
      margin-left: 10px;
      font-size: 12px;
      .detailinfo {
        display: flex;
        align-items: center;
        .hide {
          display: block;
          flex: 1;
          width: 64px;
          min-width: 0;
          overflow: hidden;
          font-weight: normal;
          white-space: nowrap;
          text-align: left;
          text-overflow: ellipsis;
        }
      }
    }
  }
}
.backheader {
  position: relative;
  height: 34px;
  background-image: url(~@/assets/image/statistics/b1.png);
  background-repeat: no-repeat;
  background-size: 100%;
  .xqpm {
    position: absolute;
    top: -14px;
    left: 18px;
    color: #ffffff;
    font-weight: bold;
    font-size: 16px;
    font-family: Source Han Sans CN;
  }
}
.borderheader {
  height: 79vh;
  border: 1px solid;
  border-image: linear-gradient(0deg, #57617b 0%, rgba(43, 45, 51, 0) 100%);
  border-image: -webkit-linear-gradient(#202126, #57617b) 40 30;
  border-image: -moz-linear-gradient(#202126, #57617b) 40 30;
  border-image: linear-gradient(#202126, #57617b) 30 30;
}
.tags {
  position: absolute;
  top: 11px;
  right: 0;
  a {
    margin-right: 16px;
    color: #b9c4dd;
    font-size: 12px;
  }
  .tagsactive {
    padding: 0 5px;
    color: #ffffff;
    background: #373f52;
  }
}
.onyear {
  width: 104px;
}
.tagtime {
  left: 70%;
}
.buttonradio {
  left: 80%;
}
.fontnumber {
  display: flex;
  justify-content: center;
  height: 43px;
  color: #1dd6e3;
  font-weight: bold;
  font-size: 30px;
  font-family: Agency FB;
}
.fontnumberjq {
  display: flex;
  height: 40px;
  color: #1dd6e3;
  font-weight: bold;
  font-size: 30px;
  font-family: Agency FB;
  line-height: 40px;
}
.fontborder {
  padding: 2px 10px;
  background: rgba(0, 255, 240, 0);
  border: 1px solid rgba(87, 97, 123, 0.6);
  border-radius: 2px;
}
:deep(.ant-carousel .slick-dots-bottom li button) {
  width: 60px;
  height: 10px;
  //   background: rgba(68, 103, 189, 0.3);
  border: 2px solid #4467bd;
}
:deep(.ant-carousel .slick-dots-bottom .slick-active) {
  width: 60px;
  height: 10px;
  background: #4467bd;
}
:deep(.ant-carousel .slick-dots li.slick-active button) {
  width: 60px;
  height: 10px;
  background: #4467bd;
}
:deep(.ant-card-body) {
  padding: 10px;
}
:deep(.ant-radio-group-solid
    .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled)) {
  background: #596788;
  border: none;
}
:deep(.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled)::before) {
  background: none;
}
:deep(.ant-carousel) {
  margin-top: -30px;
}
@media screen and (max-width: 1600px) {
  .swiper .jux {
    width: 48% !important;
    // height: 280px;
    background-size: 200% 100%;
  }
  .swiper .jux:last-child {
    margin-bottom: 30px;
  }
}
@media screen and (max-width: 1920px) {
  .contentleft {
    height: 77vh !important;
    .overheight {
      height: 72vh !important;
    }
  }
  .middle {
    height: 77vh;
    .cardContent {
      height: 30vh;
    }
    .ztDetail {
      height: 40vh;
    }
  }
  .borderheader {
    height: 77vh !important;
  }
}
@media screen and (max-width: 2160px) {
  .contentleft {
    height: 77vh !important;
    .overheight {
      height: 72vh !important;
    }
  }
  .middle {
    height: 77vh;
    .cardContent {
      height: 30vh;
    }
    .ztDetail {
      height: 40vh;
    }
  }
  .borderheader {
    height: 77vh !important;
  }
}
@media screen and (max-width: 1680px) {
  .carddata {
    height: 50% !important;
  }
  .number {
    height: 114% !important;
  }
  .numbertwo {
    height: 90% !important;
  }
  .numbertwotitle {
    margin-top: 10vh !important;
  }
}
@media screen and (max-width: 1600px) {
  .contentleft {
    height: 85vh !important;
    .overheight {
      height: 80vh !important;
    }
  }
  .middle {
    height: 85vh;
    .cardContent {
      height: 40vh;
    }
    .ztDetail {
      height: 40vh;
    }
  }
  .borderheader {
    height: 85vh !important;
  }
  .numbertwotitle {
    margin-top: 15vh !important;
  }
}
</style>
